<template>
  <div class="addstudent">
    <!-- 标题 -->
    <el-row class="header">
      <el-col :span="2" class="headerImg">
        <img src="../assets/left.png" alt />
      </el-col>
      <el-col :span="22" class="headerTitle">{{title}}</el-col>
    </el-row>
    <!-- 表单 -->
    <form action method="post">
      <el-row class="addlist">
        <el-col :span="6" class="stuname">
          <span>姓名</span>
        </el-col>
        <el-col :span="18" class="nameipt">
          <input type="text" maxlength="4" placeholder="请输入学员姓名" />
        </el-col>
      </el-row>
      <el-row class="addlist">
        <el-col :span="6" class="telphone">
          <span>手机号码</span>
        </el-col>
        <el-col :span="18" class="telipt">
          <input type="text" maxlength="11" placeholder="请输入手机号码" />
        </el-col>
      </el-row>
    </form>
    <!-- 保存 -->
    <el-row>
      <el-col :span="24" class="save">保存</el-col>
    </el-row>
  </div>
</template>
<script>
export default {
  name: "addstudent",
  data() {
    return {
      title: "添加学员"
    };
  }
};
</script>
<style lang="less" scoped>
* {
  font-size: 0.14rem;
}

.header {
  background: #ffffff;
  height: 0.8rem;
  overflow: hidden;
  border-bottom: 1px solid #f8f8f8;
  .headerImg {
    height: 0.8rem;
    img {
      width: 0.3rem;
      height: 0.5rem;
      overflow: hidden;
      margin-top: 0.15rem;
      float: right;
    }
    // background: red;
  }
  .headerTitle {
    font-size: 0.26rem;
    line-height: 0.8rem;
    text-align: center;
    font-weight: 600;
  }
}
// 添加学员姓名
.addlist {
  margin-top: 0.3rem;
  height: 1rem;
  border-bottom: 1px solid #c6c6c6;
  line-height: 1rem;
  // text-indent: 0.2rem;
  .stuname, .telphone{
    font-size: 0.24rem;
    font-weight: 600;
    span {
      margin-left: 0.2rem;
    }
  }
  .nameipt, .telipt {
    // background: red;
    input {
      width: 100%;
      height: 100%;
      background: none;
      border: none;
      color: gray;
      font-size: 0.22rem;
    }
  }
}
.save {
  width: 100%;
  height: 1rem;
  background: #fc1804;
  text-align: center;
  font-size: 0.25rem;
  line-height: 1rem;
  position: fixed;
  bottom: 0;
  left: 0;
  color: #ffffff;
  font-weight: 600;
}
</style>